package com.huawei.mall.modules.resource.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 元气小喵仙~
 * @since 2025-06-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("resources")
@ApiModel(value="Resources对象", description="")
public class Resources implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "资源id 主键 自动增长")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "资源所关联的课程id 非空 作为外键")
    private Long courseId;

    @ApiModelProperty(value = "资源名 非空")
    private String name;

    @ApiModelProperty(value = "资源类型 比如文档 视频 图片等 非空")
    private String type;

    @ApiModelProperty(value = "访问此资源的URL 非空")
    private String url;

    @ApiModelProperty(value = "资源创建时间")
    @TableField("createTime")
    private LocalDateTime createtime;

    @ApiModelProperty(value = "资源更新时间")
    @TableField("updateTime")
    private LocalDateTime updatetime;


}
